#ifndef __EEPROM_H__
#define __EEPROM_H__

typedef unsigned char u8; 

#define EEPROM_ADDR	0xa0

extern void eeprom_init(void);

// 字节写
extern void eeprom_write_byte(u8 word_address, u8 data);

// 页写
extern void eeprom_write_page(u8 word_address, u8 data[8]);

// 当前地址读
extern u8 eeprom_read_current(void);

// 随机地址读
extern u8 eeprom_read_random(u8 word_address);

// 顺序读
extern void eeprom_read_sequence(u8 *data, u8 n);

#endif
